<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<template id="tp1">
  <div>
  <slot :data="language">
    <ul>
      <li v-for="item in language">{{item}}</li>
    </ul>
  </slot>
  </div>
</template>



<div id="app">
  <cpn></cpn>

  <cpn>
    <template slot-scope="mt">
      <span v-for="l in mt.data">{{l}}-</span>
    </template>
  </cpn>

  <cpn>
    <template slot-scope="mt">
      <span>{{mt.data.join('*')}}</span>
    </template>
  </cpn>
</div>

<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el:"#app",
    data: {
      message:"stupid mother fucker"
    },
    components:{
      cpn:{
        template:'#tp1',
        data(){
          return{
            language:['JAVA','c++','Python','C','GO']
          }
        }
      }
    }
  })
</script>

</body>
</html>